#include <stdio.h>
#include <cstring>
#include <iostream>
#include <cmath>
#include "Impressionist.h"
#include "impressionistUI.h"
using namespace std;


int main(int	argc, 
		 char**	argv) 
{
	Impressionist* imp = new Impressionist();
	ImpressionistUI* impUI = new ImpressionistUI();

	// Set the impDoc which is used as the bridge between UI and brushes
	impUI->setDocument(imp);
	imp->setUI(impUI);

	Fl::visual(FL_DOUBLE|FL_INDEX);
	impUI->show();

/*	char fname[10];
	strcpy(fname,PICTURENAME);
	imp->loadImage(fname);
	strcpy(fname,LINENAME);
	imp->loadAndCalculateLines(fname);
	printf("done load lines\n");
	imp->calculateHomography();
	imp->calculatePatches();
	int tmp;
	scanf("%d",&tmp);*/

	return Fl::run();
}